package com.ct.sales.view;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.ct.sales.R;
import com.ct.sales.view.widget.CustomHeaderFragment;
import com.up91.common.android.helper.L;

public class HomeFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        System.out.println("HomeFragment.onCreateView");
        return inflater.inflate(R.layout.fg_home, null);
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        CustomHeaderFragment header = (CustomHeaderFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.fg_home_header);
        header.setCenterText(R.string.app_name);
        header.getLeftView().setVisibility(View.INVISIBLE);
    }
}
